<?php
/*
 * @Author: your name
 * @Date: 2020-07-08 16:09:59
 * @LastEditTime: 2020-07-13 08:54:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \tplay\app\api\controller\Index.php
 */ 

namespace app\api\controller;
use \think\Controller;
header('Content-Type:text/html;charset=utf-8');
class Index extends Controller 
{
    //header('Content-Type:text/html;charset=utf-8');
    /**
     * @param $code
     * @param $meg
     * @param $data
     * @return false|string
     */
    public function return_msg($code,$msg,$data=[])
    {
        return json(['code'=>$code,'msg'=>$msg,'data'=>$data] );
    }
}
